﻿using Sipek.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WinformTest.Sip
{
    internal class PhoneConfig : IConfiguratorInterface
    {
        List<IAccount> _acclist = new List<IAccount>();

        internal PhoneConfig()
        {
            _acclist.Add(new AccountConfig()
            {
                HostName = "119.23.149.12",
                UserName = "8007",
                Password = "123",
                DomainName = "119.23.149.12",
                AccountName = "8007",
                Enabled = true,
                DisplayName = "8007",
                Index = 0,
                Id = "0",
                RegState=-1,//200 is OK
                TransportMode =ETransportMode.TM_UDP,
                ProxyAddress= "119.23.149.12",
            });
        }

        public bool AAFlag
        {
            get
            {
                throw new NotImplementedException();
            }

            set
            {
                throw new NotImplementedException();
            }
        }

        public List<IAccount> Accounts
        {
            get
            {
                return _acclist;
            }
        }

        public bool CFBFlag
        {
            get
            {
                throw new NotImplementedException();
            }

            set
            {
                throw new NotImplementedException();
            }
        }

        public string CFBNumber
        {
            get
            {
                throw new NotImplementedException();
            }

            set
            {
                throw new NotImplementedException();
            }
        }

        public bool CFNRFlag
        {
            get
            {
                return false;
            }

            set
            {
                throw new NotImplementedException();
            }
        }

        public string CFNRNumber
        {
            get
            {
                throw new NotImplementedException();
            }

            set
            {
                throw new NotImplementedException();
            }
        }

        public bool CFUFlag
        {
            get
            {
                return false;
            }

            set
            {
                throw new NotImplementedException();
            }
        }

        public string CFUNumber
        {
            get
            {
                throw new NotImplementedException();
            }

            set
            {
                throw new NotImplementedException();
            }
        }

        public List<string> CodecList
        {
            get
            {
                throw new NotImplementedException();
            }

            set
            {
                throw new NotImplementedException();
            }
        }

        public int DefaultAccountIndex
        {
            get
            {
                return 0;
            }
        }

        public bool DNDFlag
        {
            get
            {
                return false;
            }

            set
            {
                throw new NotImplementedException();
            }
        }

        public bool IsNull
        {
            get
            {
                return false;
            }
        }

        public bool PublishEnabled
        {
            get
            {
                throw new NotImplementedException();
            }

            set
            {
                throw new NotImplementedException();
            }
        }

        public int SIPPort
        {
            get
            {
                return 5060;
            }

            set
            {
                throw new NotImplementedException();
            }
        }

        public void Save()
        {
            throw new NotImplementedException();
        }
    }
}
